package algorithm.simulated_annealing;

import library.Tracer;

import org.junit.Test;

public class SimulatedAnnealingTest {
	public static void main(String[] args) {
		Tracer.addTestingCatalog("scaffolding1");
		SimulatedAnnealing sim = new SimulatedAnnealing();

		sim.solution.cities.add(new City(213, 122));
		sim.solution.cities.add(new City(213, 122));
		sim.solution.cities.add(new City(23, 32));
		sim.solution.cities.add(new City(213, 129));
		sim.solution.cities.add(new City(213, 122));
		sim.solution.cities.add(new City(23, 12));
		sim.solution.cities.add(new City(263, 172));
		sim.solution.compute_tour();

		System.out.println(sim.solution.getTourlength());
		sim.find();

		Tracer.splitLine("begin");
		System.out.println(sim.solution.getTourlength());
		sim.solution.disp();

		Tracer.splitLine("done");
	}

	@Test
	public void test2() {
	}

	@Test
	public void test1() {
		int a = 32;
		int b = 355;

		a = a ^ b;
		b = a ^ b;
		a = a ^ b;

		System.out.println(a);
		System.out.println(b);
	}
}
